package com.example.demo.reflectstudy;

/**
 * @Description Teacher
 * @Author songchuanlong
 * @Date 2025-06-10
 */
public class Teacher {

    private double slary;
    private String name;

    @Override
    public String toString() {
        return "Teacher{" +
                "slary=" + slary +
                ", name='" + name + '\'' +
                '}';
    }



    public Teacher(String name, double slary) {
        this.name = name;
        this.slary = slary;
    }



    public Teacher() {
    }

    public double getSlary() {
        return slary;
    }

    public void setSlary(double slary) {
        this.slary = slary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
